package com.harassment.interception.data.databases.entities;

import android.arch.persistence.room.ColumnInfo;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;

import java.util.Date;

@Entity(tableName = "intercepted_sms")
public class InterceptedSms {
    @PrimaryKey(autoGenerate = true)
    private long id;
    @ColumnInfo(name = "number")
    private String number;
    @ColumnInfo(name = "date_time")
    private Date dateTime;
    @ColumnInfo(name = "content")
    private String content;
    @ColumnInfo(name = "remark")
    private String remark;//备注

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("InterceptedSms{");
        sb.append("id=").append(id);
        sb.append(", number='").append(number).append('\'');
        sb.append(", dateTime=").append(dateTime);
        sb.append(", content='").append(content).append('\'');
        sb.append(", remark='").append(remark).append('\'');
        sb.append('}');
        return sb.toString();
    }
}

